# 版本
cmake_minimum_required(VERSION 3.0)
#项目名
project(CloudDisk)
#c++标准
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED on)
# 递归搜索所有 .cc 文件
file(GLOB_RECURSE SOURCES 
    "./src/*.cc")

# 添加可执行文件
add_executable(a.out ${SOURCES})
# 为 myapp 可执行文件单独设置输出路径（可选）
set_target_properties(a.out PROPERTIES
    RUNTIME_OUTPUT_DIRECTORY
    ../)
    # /home/leihualin/gitee/Cloud_disk/v1)
# 为 a.out 目标添加头文件搜索路径
target_include_directories(a.out PRIVATE ./include)
# find_package(wfrest REQUIRED)
#添加连接库
target_link_libraries(a.out PRIVATE wfrest workflow ssl crypto jwt log4cpp)
